package com.ocom.exposeapi.feign;

import com.ocom.common.constant.MjRecodeUrl;
import com.ocom.common.constant.SrvpAccessDeviceUrl;
import com.ocom.common.request.exposeapi.LargeScreenRequest;
import com.ocom.common.request.srvpaccess.SendAccessRecordRequest;
import com.ocom.common.resp.RespMachMessage;
import com.ocom.common.resp.Result;
import com.ocom.common.utils.ResultUtil;
import com.ocom.common.vo.recode.AttendanceRecordVo;
import com.ocom.common.vo.recode.DoorRecodeVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "mjrecode")
public interface MjrecodeClientService {

    @PostMapping(MjRecodeUrl.URL_Record)
    public Result saveAccessRecord(@RequestBody DoorRecodeVo recodeVo);

    @PostMapping(value = MjRecodeUrl.URLP_sendAccessRecord)
    RespMachMessage sendAccessRecord(@RequestBody SendAccessRecordRequest request);

    @PostMapping(MjRecodeUrl.URL_getAttendanceRecord)
    public Result getAttendanceRecord(@RequestBody AttendanceRecordVo request);


    @PostMapping(MjRecodeUrl.URLR_todayAcTotal)
    public Result todayAcTotal(@RequestBody LargeScreenRequest request);

    @PostMapping(MjRecodeUrl.URLR_recentlyAcTotal)
    public Result recentlyAcTotal(@RequestBody LargeScreenRequest request);

    @PostMapping(MjRecodeUrl.URLR_todayHighFrequencyAcPerson)
    public Result todayHighFrequencyAcPerson(@RequestBody LargeScreenRequest request);

    @PostMapping(MjRecodeUrl.URLR_recentlyAcTime)
    public Result recentlyAcTime(@RequestBody LargeScreenRequest request);
}
